home *** CD-ROM | disk | FTP | other *** search
Wrap
// ---------------------------------------------------------------------- // Copyright ⌐ 1995, National Education Training Group, Inc. - // All rights reserved. - // - // Skill Builder 3.2 Install Declaration by Jerry Malik - // - //----------------------------------------------------------------------- #define MAX_SIZE 145 // Define Windows WinHelp Options #define HELP_CONTEXT 0x0001 #define HELP_QUIT 0x0002 #define HELP_CONTENTS 0x0003 #define WM_SYSCOMMAND 0x0112 #define SC_CLOSE 0xF060 // Define Windows ShowWindow Options // #define SW_SHOW 5 // Define dialog box buttons #define IDOK 1 #define IDCANCEL 2 #define IDABORT 3 #define IDRETRY 4 #define IDIGNORE 5 #define IDYES 6 #define IDNO 7 // Define Install types nMediaType to identify which dialog box to display. #define CD_ROM 1 // Indicates that this is CD-ROM media. #define PC_CBT 2 // Indicates that this is PC/CBT media. #define LAN 4 // Indicates that this is LAN media. #define SV_EXISTS 8 // Indicates that this is SkillVantage is loaded. #define NO_SKILLB_LMGT 16 // Indicates that there is no Skill Builder LMgt for this media. #define NO_MOVIE 32 // Special case for PC or CD with no movie. #define AUTO_PAGE_FWD_OFF 64 // Special case for no Auto Page Advance #define SINGLE_LEARNER 128 // Special case for Single Learner CD-ROM #define MULTI_LEARNER 256 // Special case for Multi-Learner CD-ROM // Define Installation selections/flags using nInstallOptions #define NO_MGT_SELECT 1 // Indicates that no LMgt was selected. #define SB_LMGT_SELECT 2 // Indicates that Skill Builder LMgt was selected. #define SV_MANAGER_SELECT 4 // Indicates that SkillVantage Manager was selected. #define AUTO_PAGE_FORWARD 8 // Indicates that Auto Page Forward was selected. #define TIME_OUT 16 // Indicates that TimeOut was selected. #define UPDATED_SYSTEM_INI 32 // Indicates that SYSTEM.INI file was updated. #define UPDATED_WIN_INI 64 // Indicates that WIN.INI file was updated. #define UPDATED_CONTROL_INI 128 // Indicates that CONTROL.INI file was updated. #define UPDATED_MPLAYER_INI 256 // Indicates that MPLAYER.INI file was updated. #define ALL_TO_SKILLV 512 // Indicates that the user wants set to use SkillVantage Manager #define MASTERY_FULL_SELECT 1024 // Indicates that the user wants set to use SkillVantage Manager #define MASTERY_PARTIAL_SELECT 2048 // Indicates that the user wants set to use SkillVantage Manager #define MASTERY_NONE_SELECT 4096 // Indicates that the user wants set to use SkillVantage Manager #define ANIMATION_ABORTED 8192 // Indicates that MPLAYER.INI file was updated. declare // Must use declare keyword to start variable declaration string szBitmapPath[100], // Defines path to the background bitmap. szSBDbase[100], // Defines name for Skill Builder Iconware messages database file szSourcedir[MAX_SIZE], // Defines path to initial SRCDIR szMessageFile[100], // Defines path to the dialog box messages file - allows external editing szDialogs, // Defines path to dialog dll szClusterDLL, // Defines path to the dll that finds drive cluster size szDiagSpReqText[100], // Holds text for Space Required area of dialog boxes szDiagSpAvailText[100], // Holds text for Space Available area of dialog boxes szMessages, // Holds internal dialog box messages szText[255], // Generic text holder for messages etc. ... szText1[255], // Generic text holder for messages etc. ... szText2[100], // Generic text holder for messages etc. ... szWindows[MAX_SIZE], // Points to the WINDOWS directory szNETGINI[MAX_SIZE], // Holds path and filename pointing to NETG.INI szWinSys[MAX_SIZE], // Points to the Windows System directory szWinINI[MAX_SIZE], // Holds path and filename pointing to Windows WIN.INI file szUpdate[255], // Generic text holder for messages etc. ... szNewPath[144], // Temporary location for holding course installation path and Learner Management path szChangeDir[MAX_SIZE], // Temporary location for holding course installation path and Learner Management path szResultPath[MAX_SIZE], // Holds path to install course - points to the SKILLB directory szCoursePath[MAX_SIZE], // Full path to course including SKILLB and course number szLMPath[MAX_SIZE], // Holds path to install Learner Management files szIVIPath[MAX_SIZE], // Used to build IVI path when creating a batch file to run course from DOS szCourse[20], // Holds course number for installed course szCourseName[80], // Holds course name for installed course szTitle[255], // Holds title in upper-left corner of installation screen szIconFile[80], // Holds the filename for the course icon - e.g. 10000.ico szIconTag[100], // Holds the course title to display with the Windows icon szTagFile[15], // Holds the filename for the split course files used in diskette installations szExt[6], // Used to build szTagFile - holds diskette number szDate[50], // Holds date for files when comparing filenames for updates szSourcePath[MAX_SIZE], // Holds path and filename to the INSTALL.INI file szName[100], // Holds user name - used for license registration szCompany[100], // Holds company name - used for license registration szPath[MAX_SIZE], // Used to build command line for creating course icon szLang[6], // Holds language code utilizing the Microsoft three letter designation szNetwork[10], // Holds Network - Yes/No value retrieved from INSTALL.INI - this is not used szCourseID[50], // Holds courseid retrieved from INSTALL.INI - this is not used - was used for CDF update szUpdateSkillV[2], // Flag used to indicate that courses should or should not be updated to use SkillVantage szTotal[20], // Used to update course total in NETG.INI - holds total number of courses szCount[10], // Used to update course total in NETG.INI - holds counter value szDisk[20], // Temporary variable used to extract drive letter and colon szCommand[MAX_SIZE], // Holds path for command line used to create/check icon information szCommand2[MAX_SIZE], // Holds path for command line used to create/check icon information szCommand3[MAX_SIZE], // Holds path for command line used to create/check icon information szCommand4[MAX_SIZE], // Holds path for command line used to create/check icon information szPgrp[40], // Holds title for Skill Builder program group szAutoPage[4], // Holds value for AutoPage selection szFile[80], // Used to hold file name information at various points in the program szWork[80], // Defines working directory szTimeOut[4], // Holds Time Out value of 0 or 50 depending on user selection szDialog[50], // Holds current dialog's name szVersion[10], // Holds current Skill Builder DLL version szExec[MAX_SIZE], // Used to build command line for icon szStMgt[6], // Used to retrieve and store Student Management value NameNum[10], // Used to update Course section of NETG.INI - holds Name# information szItemName[100], // Stores icon name information for deleting multiple icons svCmdLine[255], // Stores command line information for deleting multiple icons svWrkDir[255], // Stores working directory information for deleting multiple icons svIconPath[255], // Stores icon path information for deleting multiple icons svShortCutKey[25], // Stores shortcut key information for deleting multiple icons szAgreement[50], // Holds agreement name used for license agreement help file(s) szClusterSize[10]; // Holds cluster size for install to drive to determine disk space requirements INT nSpace, // Holds disk space required to load course nSpaceAvail, // Holds space available on install to drive nTotalCourse, // Counter used to determine the number of courses loaded on the system nResult, // Used to hold dialog box and other miscellaneous values nHan, // Stores window file handle nFile, // Holds handle to files for writing/appending nPresent, // Holds value of 1 if the course has already been installed - else 0 bSCREENSAVER, nCount, // Miscellaneous counter nOffset, // Used for appending text strings nStrLen, // Used for appending text strings nStMgt, // Holds Student Management value 0, 1, 2 or 3 ... nDisk, // Holds disk # information for diskette installation file set code bDone, // Indicates when a dialog is completed bDone2, // Indicates when a dialog is completed nInstallOptions, // Holds installation option settings/selections nMediaType, // Holds installation media type information nCmdValue, // Used to retrieve messages from dialog box controls nCmdValue2, // Used to retrieve messages from dialog box controls nDialog, // Holds dialog number nHwnd, // Holds window handle nvIconIndex, // Holds icon index value for deleting icons nvMinimizeFlag, // Holds minimize flag value for deleting icons nTotalAgreements, // Holds total number of agreements for Single Learner courses nClusterSize, // Holds cluster size for install to drive nCheckSpace, // Flag used to indicate not to check disk space under special conditions nHwdInstall; // Window handle used to reference the Doc2Help help file POINTER hWnd; declare prototype NEINSTL.GetClusterSize ( string ); // Declare function to get clustersize prototype USER.WinHelp( INT, STRING , INT, LONG ); // Declare function to call Windows Help facility LONG lResult; LIST listID1, listID2, wsDirList, AgreementList, ChangeDirList; // Dialog box text definitions - for international use, this text needs to be translated //#define SAME_DRIVE "The destination path cannot be identical to the source path. \n\nPlease enter a different path." #define SKILLV_EXIT "Installation complete.\n\n To start the course, double-click\n on the course icon in the\n SkillVantage program group.\n\n Press OK to exit." // Message used for SkillVantage demo only! #define SPACE_1 "Not enough space on drive " #define SPACE_2 " \n\nPlease press Ok and try another target drive." // Status window and Dialog box titles - for international use, this text needs to be translated #define SPACE_TITLE "Insufficient Disk Space" // ---------------------------------------------------------------------- // Copyright ⌐ 1995, National Education Training Group, Inc. - // All rights reserved. - //-----------------------------------------------------------------------